﻿<%@ Page Title="Edit Profile" Language="C#" MasterPageFile="~/Resources/AAMMaster.master"
    AutoEventWireup="true" CodeBehind="editprofile.aspx.cs" Inherits="LMKJ.editprofile" %>

<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <div class="form_name">
        Edit Profile
    </div>
    <table style="width: 100%">
        <tr>
            <td colspan="2">
                <asp:CustomValidator ID="fieldsValidator" runat="server" OnServerValidate="fieldsValidator_ServerValidate"
                    Display="Dynamic" ErrorMessage="Some fields are empty! All fields are required to update profile!"
                    ForeColor="Red" ValidationGroup="EditProfile"></asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td>
                <b>Social Worker ID </b>
            </td>
            <td>
                <asp:Label ID="swidLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>Username </b>
            </td>
            <td>
                <asp:Label ID="usernameLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <b>Name </b>
            </td>
            <td>
                <asp:TextBox ID="nameTbx" Width="100%" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <b>Date of Birth </b>
            </td>
            <td>
                <asp:DropDownList ID="monthDdl" runat="server" AutoPostBack="True" OnSelectedIndexChanged="monthDdl_SelectedIndexChanged">
                    <asp:ListItem>Month</asp:ListItem>
                </asp:DropDownList>
                /
                <asp:DropDownList ID="dayDdl" runat="server">
                    <asp:ListItem>Day</asp:ListItem>
                </asp:DropDownList>
                /
                <asp:DropDownList ID="yearDdl" runat="server">
                    <asp:ListItem>Year</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <b>Email </b>
            </td>
            <td>
                <asp:TextBox ID="emailTbx" Width="100%" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <b>Gender </b>
            </td>
            <td>
                <asp:RadioButtonList ID="genderRbl" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem>Male</asp:ListItem>
                    <asp:ListItem>Female</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td>
                <b>Joined Date </b>
            </td>
            <td>
                <asp:Label ID="joinedDateLbl" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="confirmBtn" runat="server" Text="Confirm Changes" OnClick="confirmBtn_Click"
                    CssClass="buttonConfirmChanges" ValidationGroup="EditProfile" />
                <asp:Button ID="cancelBtn" runat="server" Text="Cancel Changes" OnClick="cancelBtn_Click"
                    CssClass="buttonCancelChanges" CausesValidation="False" />
                <asp:Button ID="deleteBtn" runat="server" Text="Delete Account" OnClick="deleteBtn_Click"
                    CssClass="buttonDeleteAccount" CausesValidation="False" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="confirmationLbl" Text="Are you sure you want to delete your account?<br />Warning: You will not be able to retrieve it back!"
                    runat='server' Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
                <br />
                <asp:Button ID="confirmationBtn" Text="Confirm" runat="server" Visible="false" OnClick="confirmationBtn_Click"
                    CssClass="buttonConfirm" />
            </td>
        </tr>
    </table>
</asp:Content>
